package com.ftwj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class SysUser {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    //昵称
    private String nickName;
    //手机号码
    private String phoneNumber;
    //密码
    private String password;
    //登录次数
    private Integer loginCount;
    //最后登录IP
    private String loginIp;
    //最后登录时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginDate;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //状态(-1删除，0待审核，1正常，2已拒绝)
    private Integer state;



}
